﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace ObjectBakery.Tests.TestFactories
{
    class TestDictionaryFactory
    {
        public IDictionary Build()
        {
            Hashtable hashTable = new Hashtable();

            //hashTable["ID"] = hashTable.Count + 1;
            //hashTable["SKU"] = Guid.NewGuid().ToString();
            //hashTable["Name"] = "Pumpkin Catapult";
            //hashTable["Description"] = "Product stored in an IDictionary";
            //hashTable["Assets"] = new TestAssetFactory().Build();

            hashTable.Add("ID", hashTable.Count + 1);
            hashTable.Add("SKU", Guid.NewGuid().ToString());
            hashTable.Add("Name", "Pumpkin Catapult");
            hashTable.Add("Description", "Product stored in an IDictionary");
            hashTable.Add("Assets", new TestAssetFactory().Build());

            return hashTable;
        }
    }
}
